package hu.diploma.core.entity;

import hu.diploma.common.enums.ModificationType;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.Table;

@Entity
@Table(name = "modification_table")
public class Modification extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2077181154690024721L;

	@Column(name = "entity")
	BaseEntity entity;

	@Enumerated
	private ModificationType type;

	public BaseEntity getEntity() {
		return this.entity;
	}

	public void setEntity(BaseEntity entity) {
		this.entity = entity;
	}

	public ModificationType getType() {
		return this.type;
	}

	public void setType(ModificationType type) {
		this.type = type;
	}

}
